/*
package NiuKe;

import java.util.*;
import java.util.stream.Stream;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/13/19:18
 *//*

public class HJ58 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num1 = scanner.nextInt();
        int num2 = scanner.nextInt();
        List<Integer> list = new ArrayList<>();
        for(int i=0;i<num1;i++){
            list.add(scanner.nextInt());
        }
        Collections.sort(list,Collections.reverseOrder());
        for(int i=0;i<num2;i++){
            System.out.print(list.get(i)+" ");
        }
    }
}
*/
